﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;
using DAO;

namespace FDeal.WUC
{
    public partial class WUCThanhVien : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadDanhSachThanhVien();
            }
        }
        protected int currentColorIndex;
        public void LoadDanhSachThanhVien()
        {
            ThongTinTaiKhoanBUS thongTinTaiKhoanBUS = new ThongTinTaiKhoanBUS();
            dtldanhsachthanhvien.DataSource = thongTinTaiKhoanBUS.LietKe();
            dtldanhsachthanhvien.DataBind();
            CollectionPager1.PageSize = 3;
            CollectionPager1.DataSource = thongTinTaiKhoanBUS.LietKe();
            CollectionPager1.BindToControl = dtldanhsachthanhvien;
            dtldanhsachthanhvien.DataSource = CollectionPager1.DataSourcePaged;
        }
    }

}